package com.lovo.middleman.utils;

import com.lovo.middleman.constant.MessageCode;
import lombok.Data;

/**
 * 响应对象
 */
@Data
public class ResponseResult<T> {
    //响应的消息
    private String message;
    //响应的编号
    private String code;
    //返回的数据
    private T data;

    public ResponseResult() {
        this.message = MessageCode.SUCCESS.message;
        this.code = MessageCode.SUCCESS.code;
    }
}
